<%@page import="java.sql.*"%>
<%@ page import="javabean.DateTime" %>
<%@ page import="javabean.CompareDate" %>
<%@page import="javabean.JDBCBean"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
		 pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>
<!-- Bootstrap -->
<link href="../css/bootstrap.min.css" rel="stylesheet">
<!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery，所以必须放在前边) -->
<script src="../js/jquery.min.js"></script>
<script src="../js/bootstrap.min.js"></script>
<style>
.sidebar li a:hover{
	background:#337ab7;
	color:white;
} 
.faq-tabbable li a:focus{
	background:skyblue;
	color:white;
} 
</style>

</head>
<body>
<jsp:useBean id="judge" scope="session" class="javabean.JDBCBean"></jsp:useBean>
	<%
		JDBCBean db2 = new JDBCBean();
		if(session.getAttribute("reader")!=null){
			Object reader=session.getAttribute("reader");
			int readid=Integer.parseInt(reader.toString());
			String Sql2 = "select * from borrow_books where card_id ="+readid+" and status='1'";
			ResultSet rs2 = db2.executeQuery(Sql2);



	%>
	<div style="text-align:center;width:100%;height:100%;">
		<ul class="nav nav-pills nav-stacked nav-inverse sidebar faq-tabbable">
		<% if(session.getAttribute("reader")!=null){%>
			<li role="presentation" text-align="left"><a href="01main.jsp" target="view_frame" text-align="left"><span>&nbsp;Home</span></a></li>
			<li role="presentation" text-align="left"><a href="05book.jsp" target="view_frame" text-align="left"><span>&nbsp;Search For Books</span></a></li>
			<!--<li role="presentation"><a href="12ru"les.jsp" target="view_frame"><span class="glyphicon glyphicon-bell" aria-hidden="true">&nbsp;Reader Rules</span></a></li>-->
			<li role="presentation" text-align="left"><a href="07announcement.jsp" target="view_frame" text-align="left"><span>&nbsp;Notice</span></a></li>
			<li role="presentation" text-align="left"><a href="index.jsp" target="view_frame" text-align="left"><span>&nbsp;Person Information</span></a></li>
			<li role="presentation" text-align="left"><a href="06borrow.jsp" target="view_frame" text-align="left"><span>&nbsp;Borrowing Information</span></a></li>
			<%if(!rs2.next()){%>
			<li role="presentation" text-align="left"><a href="16borrowbook.jsp" target="view_frame" text-align="left"><span>borrow</span></a></li>
			<%}else{%>
			<li role="presentation" text-align="left"><a href="../index2.jsp" target="view_frame" text-align="left"><span>pay the penalty</span></a></li>
			<%}}%>
			<li role="presentation" text-align="left"><a href="18judge.jsp" target="view_frame" text-align="left"><span>return</span></a></li>
			<%--<li role="presentation" text-align="left"><a href="08illegalInfo.jsp" target="view_frame" text-align="left"><span class="glyphicon glyphicon-remove" aria-hidden="true" >&nbsp;Violation Information</span></a></li>--%>
			<%--<li role="presentation" text-align="left"><a href="13message.jsp" target="view_frame" text-align="left"><span class="glyphicon glyphicon-pencil" aria-hidden="true" >&nbsp;Reader message</span></a></li>--%>
		<%
			}else{ 
		%>
			<li role="presentation" text-align="left"><a href="01main.jsp" target="view_frame" text-align="left"><span>&nbsp;Home</span></a></li>
			<li role="presentation" text-align="left"><a href="05book.jsp" target="view_frame" text-align="left"><span>&nbsp;Search For Books</span></a></li>
			<%--<li role="presentation" text-align="left"><a href="12rules.jsp" target="view_frame" text-align="left"><span class="glyphicon glyphicon-bell" aria-hidden="true" >&nbsp;Reader Rules</span></a></li>--%>
			<%--<li role="presentation" text-align="left"><a href="07announcement.jsp" target="view_frame" text-align="left"><span class="glyphicon glyphicon-bullhorn" aria-hidden="true" >&nbsp;Notice</span></a></li>--%>
			<%--<li role="presentation" text-align="left"><a href="15checkMessage.jsp" target="view_frame" text-align="left"><span class="glyphicon glyphicon-envelope" aria-hidden="true">&nbsp;See message</span></a></li>--%>
			<%
			}
			%>
		</ul>
	</div>
</body>
</html>